package edu.upenn.yas;

import java.util.Map;

import com.opensymphony.xwork2.ActionContext;
import com.opensymphony.xwork2.ActionSupport;

/** Action taken when a user logs off */
public class LogoutAction extends ActionSupport {

    public String execute() {
        Map session = ActionContext.getContext().getSession();
        session.remove("login");
        session.remove("username");
        session.remove("context");
        session.remove("loginfailed");
        return SUCCESS;
    }
}
